package com.management.commons.exception.ExceptionCode;

public enum DefectStateExceptionCode {
    GETSTATE_NULL_ERROR(6001,"缺陷类型为空"),
    CREATESTATE_ERROR(6002,"创建失败"),
    STATEDESCISEXISTS_ERROR(6003,"创建失败,不能添加已经存在的缺陷类型"),
    DELETESTATE_ERROR(6004,"删除失败"),
    DISABLEBYSTATEID_ERROR(6005,"修改失败");

    private Integer code;
    private String message;
    DefectStateExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
